/*Layout*/

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.grid-block {
  clear: both;
  letter-spacing: -0.31em;
  display: -webkit-flex;
  -webkit-flex-flow: row wrap;
  display: -ms-flexbox;
  -ms-flex-flow: row wrap;
  overflow: hidden;
  text-rendering: optimizespeed;
  width: 100%;
}

.grid-block,
.grid-1,
.grid-lg-1-2,
.grid-lg-1-3 {
  display: inline-block;
  float: left;
  letter-spacing: normal;
  padding: 0px 10px;
  vertical-align: top;
  word-spacing: normal;
  text-rendering: auto;
  width: 100%;
  zoom: 1;
}

/*-----------------*/

body {
  background-color: #fff;
  color: #000;
  font-family: Georgia, serif;
  font-size: 16px;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: inherit;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.1;
  margin-top: 20px;
  margin-bottom: 10px;
}

h1 {
  font-size: 45px;
  margin-bottom: 0px;
  margin-top: 30px;
}

h1 a {
  color: #fa4949;
}

h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
}

a {
  color: #1a65ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 12px 0;
  line-height: 20px;
  letter-spacing: normal;
}

ul {
  padding: 0;
}

li {
  border-bottom: 1px dashed #e0e0e0;
  line-height: 1.55;
  list-style-type: none;
  padding: 7px 0;
}

kbd {
  background-color: #eee;
  color: #000;
  border-radius: 0;
  box-shadow: none;
  font-family: "Inconsolata", monospace;
  font-size: 1em;
  font-weight: bold;
  padding: 4px;
}

.container {
  background: #fff;
  margin: 0 auto;
  width: 100%;
  max-width: 1170px;
}

.well {
  background: #f8f8f8;
  border: none;
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  min-height: 20px;
  margin-bottom: 20px;
  padding: 19px;
  line-height: 26px;
}

.link-to-repo {
  margin: 20px 0;
  text-align: center;
}

.link-to-repo p {
  margin-bottom: inherit;
}

.ja {
  font-size: 13px;
}

.ja h2 {
  font-size: 20px;
}

.ja kbd {
  font-size: 16px;
}

.box {
  background: #f8f8f8;
  border: 1px solid #e7e7e7;
  margin: 10px 0;
  width: 100%;
}

.box .grid-block {
  padding: 0;
}

.box-header {
  background: #ebebeb;
  min-height: 30px;
  padding: 10px;
}

.box-header h2 {
  font-size: 16px;
  margin: 5px 0;
}

.box-body {
  font-size: 14px;
  display: block;
  clear: both;
  overflow: hidden;
  padding: 0 10px;
  padding-bottom: 20px;
}

.box-body li {
  border-bottom: none;
  line-height: inherit;
  list-style-type: none;
  padding: 7px 7px;
}

.sponsor {
  width: 100%;
  background: #250343;
  border-bottom: 1px solid #300456;
}

.sponsor .container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #250343;
}

.sponsor-logo-container,
.sponsor-tagline {
  display: flex;
  padding: 20px 10px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sponsor-logo-container span {
  display: inline;
  position: absolute;
  font-size: 10px;
  top: 5px;
  left: 10px;
}

.sponsor-logo {
  display: inline-block;
  width: 107px;
  height: 25px;
  background-image: url("/images/svg/warp-logo.svg");
  background-position: 50% 50%;
  background-size: auto;
  background-repeat: no-repeat;
}

.sponsor a,
.sponsor a:hover,
.sponsor a:visited {
  display: flex;
}

.sponsor span {
  color: #c3e7fb;
  text-decoration: none;
}

@media print {
  html,
  body {
    height: 90%;
  }

  body {
    line-height: 1.3;
    font-size: 10px;
  }

  h1 {
    font-size: 20px;
    margin-left: 0;
    margin-bottom: 8px;
    margin-top: 0;
  }

  h2 {
    font-size: 10px;
    margin-bottom: -10px;
    margin-top: 0;
    line-height: 10px;
  }

  #footer,
  .link-to-repo {
    height: 0px;
    display: none;
  }

  .commands-container {
    clear: both;
    overflow: hidden;
  }

  .commands-container > .grid-block:first-child {
    width: 60%;
  }

  .commands-container > .grid-block:last-child .grid-lg-1-3 {
    width: 50%;
  }

  .grid-block {
    clear: none;
    float: left;
    display: inline-block;
    overflow: hidden;
    width: 40%;
  }

  .grid-1 {
    padding: 0;
    margin: 0;
  }

  .grid-lg-1-3 {
    display: inline-block;
    float: left;
    letter-spacing: normal;
    padding: 0;
    word-spacing: normal;
    text-rendering: auto;
    width: 33.3333%;
    zoom: 1;
  }

  li {
    line-height: initial;
    padding: 4px 5px;
  }

  kbd {
    color: #000;
    font-size: 12px;
    padding: 0;
  }

  .well {
    height: 0px;
    display: none;
  }

  .sponsor {
    display: none;
  }
}

@page {
  margin: 0.5cm;
}

/*Large*/
@media screen and (min-width: 64em) {
  .sponsor .container {
    justify-content: right;
  }

  .grid-lg-1-2 {
    width: 50%;
  }

  .grid-lg-1-3 {
    width: 33.3333%;
  }
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    /* Dark background */
    color: #e0e0e0;
    /* Light text */
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .h1,
  .h2,
  .h3,
  .h4,
  .h5,
  .h6 {
    color: #e6e6e6;
    /* Lighter headings for dark mode */
  }

  h1 a {
    color: #ff6e6e;
    /* Adjust link colors as needed */
  }

  a {
    color: #ff6e6e;
    /* Different link color for dark mode */
  }

  .well,
  .box,
  .box-header {
    background: #1a1a1a;
    /* Darker backgrounds for containers */
    border-color: #333333;
    /* Dark borders */
  }

  .sponsor {
    background: #0a0a23;
    /* Dark theme for sponsor section */
    border-bottom-color: #1a1a56;
  }

  .sponsor span {
    color: #a8d1fb;
    /* Adjust text colors */
  }

  .sponsor .container {
    background: #0a0a23;
  }

  kbd {
    background: #282828;
    color: #e6e6e6;
  }

  li {
    border-bottom: 1px dashed #2f2f2f;
  }

  /* Additional overrides as needed */
}
